#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    //按类型及其子类设置
    //w.setStyleSheet("QPushButton{color:red;}");

    //按单单类型不设置子类
    //w.setStyleSheet(".QPushButton{color:red;}");

    //按对象名设置
    w.setStyleSheet("#pushButton{color:red;}");
    w.show();
    return a.exec();
}
